home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / marchzuma.swf / scripts / DefineSprite_587 / frame_1 / DoAction.as
Text File  |  2007-10-01  |  1KB  |  33 lines

  1. function connectSWHiscore(functionType, hiscoreID, scoreNum)
  2. {
  3.    this.createEmptyMovieClip("httpObj",this.httpObjDepth);
  4.    switch(functionType)
  5.    {
  6.       case "view":
  7.          this.httpObj.gameid = this.gameID;
  8.          this.httpObj.hiscoreid = hiscoreID;
  9.          this.httpObj.getURL(this.viewHURL,"_blank","POST");
  10.          break;
  11.       case "submit":
  12.          this.recieve_lv = new LoadVars();
  13.          this.recieve_lv.hiscoreConnector = this;
  14.          this.recieve_lv.onLoad = function(isSuccess)
  15.          {
  16.             if(isSuccess)
  17.             {
  18.                this.hiscoreConnector.httpObj.tempID = this.tempID;
  19.                this.hiscoreConnector.httpObj.getURL(this.hiscoreConnector.submitGetHURL,"_blank","GET");
  20.             }
  21.          };
  22.          this.submit_lv = new LoadVars();
  23.          this.submit_lv.score = scoreNum;
  24.          this.submit_lv.gameid = this.gameID;
  25.          this.submit_lv.hiscoreid = hiscoreID;
  26.          this.submit_lv.sendAndLoad(this.submitPostHURL,this.recieve_lv,"POST");
  27.    }
  28. }
  29. this.swc_mc._visible = false;
  30. this.viewHURL = "http://hiscore.shockwave.co.jp/rank/member/control/listscore.php";
  31. this.submitPostHURL = "http://hiscore.shockwave.co.jp/rank/member/control/maketemp.php";
  32. this.submitGetHURL = "http://hiscore.shockwave.co.jp/rank/member/control/logintemp.php";
  33.